﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Trabajador
{
    public partial class Busqueda : Form
    {
        public Busqueda()
        {
            InitializeComponent();
        }

        private void btnShow_Click(object sender, EventArgs e)
        {
            MostrarTrabajador showT =new MostrarTrabajador();
            showT.Show();
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {

            this.Close();
        }

        private void btnAccept_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Datos Obtenidos");
           /* if (this.ParentForm() == ModificarTrabajador())
            {

            }*/
           // ModificarTrabajador parent = (ModificarTrabajador)this.Owner;
           // parent.btn
            this.Close();
        }


        private void dgvOrgs_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            btnAccept.Enabled = true;
            btnShow.Enabled = true;
        }

        private void btnContrat_Click(object sender, EventArgs e)
        {

            Contratos c = new Contratos();
            c.MdiParent = this.ParentForm;
            c.Show();
        }

        private void Busqueda_Load(object sender, EventArgs e)
        {

        }
    }
}
